load("//bazel:build.bzl", "redpanda_cc_binary", "redpanda_cc_library")

redpanda_cc_library(
    name = "application",
    srcs = [
        "application.cc",
    ],
    hdrs = [
        "application.h",
    ],
    visibility = ["//visibility:public"],
    deps = [
        "//src/v/base",
        "//src/v/bytes:iostream",
        "//src/v/json",
        "//src/v/kafka/client:cluster",
        "//src/v/kafka/client:errors",
        "//src/v/kafka/client:exceptions",
        "//src/v/kafka/client:logger",
        "//src/v/kafka/client:types",
        "//src/v/kafka/client/direct_consumer",
        "//src/v/kafka/client/direct_consumer/verifier/proto:verifier_api",
        "//src/v/kafka/protocol",
        "//src/v/kafka/protocol:fetch",
        "//src/v/kafka/protocol:list_offset",
        "//src/v/kafka/protocol:metadata",
        "//src/v/kafka/protocol/schemata:fetch_response",
        "//src/v/model",
        "//src/v/net",
        "//src/v/serde/protobuf:rpc",
        "//src/v/ssx:async_algorithm",
        "//src/v/ssx:future_util",
        "//src/v/utils:mutex",
        "//src/v/utils:prefix_logger",
        "//src/v/utils:stop_signal",
        "//src/v/utils:unresolved_address",
        "@abseil-cpp//absl/strings",
        "@fmt",
        "@seastar",
    ],
)

redpanda_cc_binary(
    name = "direct_consumer_verifier",
    srcs = [
        "main.cc",
    ],
    visibility = ["//visibility:public"],
    deps = [
        ":application",
        "//src/v/base",
        "//src/v/kafka/client:cluster",
        "//src/v/kafka/client:errors",
        "//src/v/kafka/client:exceptions",
        "//src/v/kafka/client:logger",
        "//src/v/kafka/client:types",
        "//src/v/kafka/client/direct_consumer",
        "//src/v/kafka/protocol",
        "//src/v/kafka/protocol:fetch",
        "//src/v/kafka/protocol:list_offset",
        "//src/v/kafka/protocol:metadata",
        "//src/v/kafka/protocol/schemata:fetch_response",
        "//src/v/model",
        "//src/v/redpanda:cli_parser",
        "//src/v/ssx:async_algorithm",
        "//src/v/ssx:future_util",
        "//src/v/utils:mutex",
        "//src/v/utils:prefix_logger",
        "//src/v/utils:unresolved_address",
        "@fmt",
        "@seastar",
    ],
)
